package com.jy.adscm.wechat.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-09-30
 */
public class WechatMaterialDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long pid;
    /**
     * 使用数量
     */
    private Float nums;
    /**
     * 出库时间
     */
    private Date outStockTime;
    /**
     * 出库人
     */
    private String outStocker;
    @TableField(exist = false)
    private String outStockerName;
    /**
     * 出库结果
     */
    private String result;
    /**
     * 备注
     */
    private String remark;

    public String getOutStockerName() {
        return outStockerName;
    }

    public void setOutStockerName(String outStockerName) {
        this.outStockerName = outStockerName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Float getNums() {
        return nums;
    }

    public void setNums(Float nums) {
        this.nums = nums;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOutStockTime() {
        return outStockTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOutStockTime(Date outStockTime) {
        this.outStockTime = outStockTime;
    }

    public String getOutStocker() {
        return outStocker;
    }

    public void setOutStocker(String outStocker) {
        this.outStocker = outStocker;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "WechatMaterialDetail{" +
        "id=" + id +
        ", pid=" + pid +
        ", nums=" + nums +
        ", outStockTime=" + outStockTime +
        ", outStocker=" + outStocker +
        ", result=" + result +
        ", remark=" + remark +
        "}";
    }
}
